/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package utility;

import java.util.ArrayList;

/**
 *
 * @author Jeppe
 */
public class DebugUtility {

    private static DebugUtility instance;
    private final ArrayList<String> debugList;

    private DebugUtility() {
        debugList = new ArrayList<>();
    }

    public static DebugUtility getInstance() {
        if (instance == null) {
            instance = new DebugUtility();
        }
        return instance;
    }

    public void soutDebugLine(Object object, int debugType, String debugMsg) {
        String debugTypeStr = "";
        debugList.add(debugMsg);
        if (debugType == 1) {
            debugTypeStr = "informs";
        }
        System.out.println(object.getClass().getName() + " | " +debugTypeStr+" | "+debugMsg);

    }
}
